/*
 * @Description: 
 * @Author: iamsmiling
 * @Date: 2021-06-16 06:38:16
 * @LastEditTime: 2021-06-16 07:00:18
 */

import 'package:get_storage/get_storage.dart';

///数据持久化处理 类似 sharepreference
abstract class LocalStorage {
  static GetStorage _box = GetStorage();

  static read(String key) {
    return _box.read(key);
  }

  static write(String key, dynamic value) {
    return _box.write(key, value);
  }

  static void remove(String key) {
    _box.remove(key);
  }

  static void clear() {
    _box.erase();
  }
}
